
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Intro to Bootstrap · Girls Coding Day Tutorial</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Yang Wen <wenyang@codingirls.club>">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="1-Grid.html" />
    
    
    <link rel="prev" href="../CSS/5-CSS-Best-Practice.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://girlscodingday.org/" target="_blank" class="custom-link">Girls Coding Day</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Kickoff/">
            
                <a href="../Kickoff/">
            
                    
                    KickOff Party
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Kickoff/1-Teaching-Target.html">
            
                <a href="../Kickoff/1-Teaching-Target.html">
            
                    
                    1.1 教学目的
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Kickoff/2-Software-Tool.html">
            
                <a href="../Kickoff/2-Software-Tool.html">
            
                    
                    1.2 软件和工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Kickoff/3-Learning-Method.html">
            
                <a href="../Kickoff/3-Learning-Method.html">
            
                    
                    1.3 教学方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../Kickoff/4-Web-Basics.html">
            
                <a href="../Kickoff/4-Web-Basics.html">
            
                    
                    1.4 WEB基本知识和历史
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../Kickoff/5-Pre-Homework.html">
            
                <a href="../Kickoff/5-Pre-Homework.html">
            
                    
                    1.5 课前自学
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../HTML/">
            
                <a href="../HTML/">
            
                    
                    Intro to HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../HTML/1-HTML-Basics.html">
            
                <a href="../HTML/1-HTML-Basics.html">
            
                    
                    2.1 初识HTML
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../HTML/2-Common-HTML.html">
            
                <a href="../HTML/2-Common-HTML.html">
            
                    
                    2.2 HTML常用术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../HTML/3-Webpage-Anatomy.html">
            
                <a href="../HTML/3-Webpage-Anatomy.html">
            
                    
                    2.3 解剖网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../HTML/4-Best-Practice.html">
            
                <a href="../HTML/4-Best-Practice.html">
            
                    
                    2.4 动手 - 修改更多HTML
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../CSS/">
            
                <a href="../CSS/">
            
                    
                    Intro to CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../CSS/1-CSS-Basics.html">
            
                <a href="../CSS/1-CSS-Basics.html">
            
                    
                    3.1 初识CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../CSS/2-Common-CSS.html">
            
                <a href="../CSS/2-Common-CSS.html">
            
                    
                    3.2 CSS常用术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../CSS/3-Box-Model.html">
            
                <a href="../CSS/3-Box-Model.html">
            
                    
                    3.3 CSS盒子模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../CSS/4-Chrome-Developer-Tool.html">
            
                <a href="../CSS/4-Chrome-Developer-Tool.html">
            
                    
                    3.4 使用Chrome开发者工具调试样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../CSS/5-CSS-Best-Practice.html">
            
                <a href="../CSS/5-CSS-Best-Practice.html">
            
                    
                    3.5 动手 - 修改更多CSS样式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    Intro to Bootstrap
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="1-Grid.html">
            
                <a href="1-Grid.html">
            
                    
                    4.1 布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="2-Bootstrap-CSS.html">
            
                <a href="2-Bootstrap-CSS.html">
            
                    
                    4.2 基础Bootstrap CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="3-Components.html">
            
                <a href="3-Components.html">
            
                    
                    4.3 组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Project.html">
            
                <a href="../Project.html">
            
                    
                    大作业
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Share.html">
            
                <a href="../Share.html">
            
                    
                    分享
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Intro to Bootstrap</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x4EC0;&#x4E48;&#x662F;bootstrap&#xFF1F;">&#x4EC0;&#x4E48;&#x662F;Bootstrap&#xFF1F;</h2>
<ol>
<li>Bootstrap &#x662F;&#x7531;Twitter&#x63A8;&#x51FA;&#x7684;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x5FEB;&#x901F;&#x5F00;&#x53D1; Web &#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x548C;&#x7F51;&#x7AD9;&#x7684;&#x524D;&#x7AEF;&#x6846;&#x67B6;&#x3002;</li>
<li>&#x57FA;&#x4E8E;html5&#x3001;css3&#x7684;bootstrap&#xFF0C;&#x5177;&#x6709;&#x4E0B;&#x9762;&#x8FD9;&#x4E9B;&#x8BF1;&#x4EBA;&#x7279;&#x6027;&#xFF1A;  <ul>
<li>&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x4F18;&#x5148;&#xFF1B;  </li>
<li>&#x6F02;&#x4EAE;&#x7684;&#x8BBE;&#x8BA1;&#xFF1B;  </li>
<li>&#x53CB;&#x597D;&#x7684;&#x5B66;&#x4E60;&#x66F2;&#x7EBF;&#xFF1B;  </li>
<li>&#x5353;&#x8D8A;&#x7684;&#x517C;&#x5BB9;&#x6027;&#xFF1B;  </li>
<li>&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;&#xFF1B;  </li>
<li>12&#x5217;&#x54CD;&#x5E94;&#x5F0F;&#x6805;&#x683C;&#x7ED3;&#x6784;&#xFF1B;  </li>
<li>&#x6837;&#x5F0F;&#x5411;&#x5BFC;&#x6587;&#x6863;&#x3002;  </li>
</ul>
</li>
<li>&#x81EA;&#x5B9A;&#x4E49;JQuery&#x63D2;&#x4EF6;&#xFF0C;&#x5B8C;&#x6574;&#x7684;&#x7C7B;&#x5E93;&#xFF0C;&#x57FA;&#x4E8E;Less&#x3001;Sass&#x7B49;</li>
</ol>
<h2 id="&#x5B89;&#x88C5;bootstrap">&#x5B89;&#x88C5;Bootstrap</h2>
<p>Bootstrap &#x63D0;&#x4F9B;&#x4EE5;&#x4E0B;&#x51E0;&#x79CD;&#x65B9;&#x5F0F;&#x5E2E;&#x4F60;&#x5FEB;&#x901F;&#x4E0A;&#x624B;&#xFF0C;&#x6BCF;&#x4E00;&#x79CD;&#x65B9;&#x5F0F;&#x9488;&#x5BF9;&#x5177;&#x6709;&#x4E0D;&#x540C;&#x6280;&#x80FD;&#x7B49;&#x7EA7;&#x7684;&#x5F00;&#x53D1;&#x8005;&#x548C;&#x4E0D;&#x540C;&#x7684;&#x4F7F;&#x7528;&#x573A;&#x666F;&#x3002;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x4E00;&#xFF0C;&#x51CF;&#x5C11;&#x64CD;&#x4F5C;&#x3002;</p>
<h5 id="1-&#x4F7F;&#x7528;-bootstrap-&#x63D0;&#x4F9B;&#x7684;&#x514D;&#x8D39;-cdn-&#x52A0;&#x901F;&#x670D;&#x52A1;">1. &#x4F7F;&#x7528; Bootstrap &#x63D0;&#x4F9B;&#x7684;&#x514D;&#x8D39; CDN &#x52A0;&#x901F;&#x670D;&#x52A1;</h5>
<p><a href="http://getbootstrap.com/getting-started/#download-cdn" target="_blank">&#x82F1;&#x6587;&#x5B98;&#x65B9;&#x7F51;&#x7AD9;</a>&#x548C;&#x4E2D;&#x6587;&#x7F51;&#x7AD9;&#x7684;&#x5730;&#x5740;&#x4E0D;&#x540C;&#xFF0C;&#x7531;&#x4E8E;&#x4F17;&#x6240;&#x5468;&#x77E5;&#x7684;&#x5899;&#x7684;&#x539F;&#x56E0;&#xFF0C;&#x6211;&#x4EEC;&#x91C7;&#x7528;<a href="http://v3.bootcss.com/getting-started/#download" target="_blank">&#x4E2D;&#x6587;&#x7F51;&#x7AD9;</a>&#xFF09;&#x3002;</p>
<p>&#x590D;&#x5236;&#x4E0B;&#x9762;&#x7684;<link>&#x6837;&#x5F0F;&#x8868;&#x7C98;&#x8D34;&#x5230;&#x4F60;&#x7684;&#x7F51;&#x9875;&#x7684;<head>&#x91CC;&#x9762;&#xFF0C;&#x653E;&#x5728;&#x5728;&#x5176;&#x4ED6;&#x6837;&#x5F0F;&#x8868;&#x6587;&#x4EF6;&#x4E4B;&#x524D;&#x3002;</head></p>
<pre><code class="lang-html"><span class="hljs-comment">&lt;!-- &#x65B0; Bootstrap &#x6838;&#x5FC3; CSS &#x6587;&#x4EF6; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">&quot;stylesheet&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css&quot;</span>&gt;</span>
</code></pre>
<p>&#x628A;&#x8FD9;&#x4E2A;JavaScript&#x63D2;&#x4EF6;&#x4EE5;&#x53CA;JQuery&#x653E;&#x5728;&#x4F60;&#x7684;&#x7F51;&#x9875;&#x7684;&#x672B;&#x5C3E;&#x9644;&#x8FD1;&#xFF0C;&#x5C31;&#x5728;&lt;/body&gt;&#x6807;&#x7B7E;&#x524D;&#x9762;&#x3002;&#x8BB0;&#x4F4F;&#x9700;&#x8981;&#x5148;&#x6DFB;&#x52A0;jQuery&#xFF0C;&#x56E0;&#x4E3A;&#x6211;&#x4EEC;&#x7684;&#x4EE3;&#x7801;&#x4F9D;&#x8D56;&#x4E8E;&#x5B83;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-comment">&lt;!-- jQuery&#x6587;&#x4EF6;&#x3002;&#x52A1;&#x5FC5;&#x5728;bootstrap.min.js &#x4E4B;&#x524D;&#x5F15;&#x5165; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js&quot;</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>

<span class="hljs-comment">&lt;!-- &#x6700;&#x65B0;&#x7684; Bootstrap &#x6838;&#x5FC3; JavaScript &#x6587;&#x4EF6; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js&quot;</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
</code></pre>
<h5 id="2--&#x4E0B;&#x8F7D;&#x300C;&#x7528;&#x4E8E;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x7684;-bootstrap&#x300D;&#x5230;&#x672C;&#x5730;">2.  &#x4E0B;&#x8F7D;&#x300C;&#x7528;&#x4E8E;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x7684; Bootstrap&#x300D;&#x5230;&#x672C;&#x5730;</h5>
<p>&#x5230; <a href="http://v3.bootcss.com/getting-started/#download" target="_blank">Bootstrap&#x4E2D;&#x6587;&#x7F51;&#x7AD9;</a>&#x4E0B;&#x8F7D;&#x7528;&#x4E8E;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x7684; Bootstrap&#xFF0C;&#x7136;&#x540E;&#x89E3;&#x538B;&#x7F29;&#x3002;</p>
<h5 id="3-&#x5176;&#x4ED6;&#x5DE5;&#x5177;&#x4E0B;&#x8F7D;">3. &#x5176;&#x4ED6;&#x5DE5;&#x5177;&#x4E0B;&#x8F7D;</h5>
<p>&#x73B0;&#x5728;&#x8FD8;&#x65E0;&#x9700;&#x638C;&#x63E1;&#xFF0C;&#x77E5;&#x9053;&#x6709;&#x8FD9;&#x79CD;&#x5B89;&#x88C5;&#x65B9;&#x6CD5;&#x5373;&#x53EF;</p>
<ul>
<li>&#x901A;&#x8FC7; Bower &#x8FDB;&#x884C;&#x5B89;&#x88C5;</li>
<li>&#x901A;&#x8FC7; npm &#x8FDB;&#x884C;&#x5B89;&#x88C5;</li>
<li>&#x5176;&#x4ED6;</li>
</ul>
<h2 id="&#x8D77;&#x59CB;&#x6A21;&#x677F;">&#x8D77;&#x59CB;&#x6A21;&#x677F;</h2>
<p></p><p data-height="630" data-theme-id="0" data-slug-hash="QGmVdJ" data-default-tab="html" data-user="sundevilyang" data-embed-version="2" data-pen-title="Bootstrap&#x6807;&#x51C6;&#x6A21;&#x677F;" class="codepen">See the Pen <a href="http://codepen.io/sundevilyang/pen/QGmVdJ/" target="_blank">Bootstrap&#x6807;&#x51C6;&#x6A21;&#x677F;</a> by Yang Wen (<a href="http://codepen.io/sundevilyang" target="_blank">@sundevilyang</a>) on <a href="http://codepen.io" target="_blank">CodePen</a>.</p><p></p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>





<h2 id="&#x5168;&#x5C40;-css-&#x6837;&#x5F0F;&#x6982;&#x89C8;">&#x5168;&#x5C40; CSS &#x6837;&#x5F0F;&#x6982;&#x89C8;</h2>
<blockquote>
<p>&#x8BBE;&#x7F6E;&#x5168;&#x5C40; CSS &#x6837;&#x5F0F;&#xFF1B;&#x57FA;&#x672C;&#x7684; HTML &#x5143;&#x7D20;&#x5747;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; class &#x8BBE;&#x7F6E;&#x6837;&#x5F0F;&#x5E76;&#x5F97;&#x5230;&#x589E;&#x5F3A;&#x6548;&#x679C;&#xFF1B;&#x8FD8;&#x6709;&#x5148;&#x8FDB;&#x7684;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x3002;</p>
</blockquote>
<p>&#x4E00;&#x8FB9;&#x53C2;&#x8003;<a href="http://v3.bootcss.com/css/" target="_blank">&#x5168;&#x5C40; CSS &#x6837;&#x5F0F; &#xB7; Bootstrap &#x4E2D;&#x6587;&#x6587;&#x6863;</a> <strong>&#x6982;&#x89C8;&#x90E8;&#x5206;</strong>&#xFF0C;&#x4E00;&#x8FB9;&#x9605;&#x8BFB;&#x4EE5;&#x4E0B;&#x90E8;&#x5206;</p>
<ol>
<li><p>&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x5C06;&#x9875;&#x9762;&#x8BBE;&#x7F6E;&#x4E3A; HTML5 &#x6587;&#x6863;&#x7C7B;&#x578B;&#xFF1F;</p>
<blockquote>
<p>&#x7B54;&#xFF1A;Bootstrap &#x4F7F;&#x7528;&#x5230;&#x7684;&#x67D0;&#x4E9B; HTML &#x5143;&#x7D20;&#x548C; CSS &#x5C5E;&#x6027;&#x53EA;&#x6709; HTML5&#x63D0;&#x4F9B;&#x3002;</p>
<p>&#x76F8;&#x5173;&#x95EE;&#x9898;&#xFF1A;&#x5982;&#x4F55;&#x8BBE;&#x7F6E;&#x9875;&#x9762;&#x4E3A; HTML4 &#x6587;&#x6863;&#x7C7B;&#x578B;&#xFF1F;&#xFF08;&#x5982;&#x679C;&#x4E0D;&#x77E5;&#x9053;&#xFF0C;&#x53EF;&#x4EE5;&#x770B;W3C&#x7684;&#x6587;&#x6863;&#xFF0C;&#x6216;&#x8005;&#x7528;Google&#x641C;&#x7D22;&#xFF09;</p>
</blockquote>
</li>
<li><p>&#x600E;&#x4E48;&#x7406;&#x89E3;&#x300C;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x4F18;&#x5148;&#x300D;&#xFF1F;</p>
<blockquote>
<p>&#x5148;&#x6EE1;&#x8DB3;&#x5C0F;&#x5C4F;&#x5E55;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#xFF08;&#x624B;&#x673A;&#x3001;&#x5E73;&#x677F;&#xFF09;&#xFF0C;&#x518D;&#x53BB;&#x6269;&#x5C55;&#x91CC;&#x9762;&#x7684;components&#x53BB;&#x6EE1;&#x8DB3;&#x5927;&#x5C4F;&#x5E55;&#x8BBE;&#x5907;&#xFF08;&#x7B14;&#x8BB0;&#x672C;&#x3001;&#x53F0;&#x5F0F;&#x673A;&#xFF09;&#x3002;</p>
<h5 id="&#x79FB;&#x52A8;&#x4F18;&#x5148;&#x7B56;&#x7565;">&#x79FB;&#x52A8;&#x4F18;&#x5148;&#x7B56;&#x7565;</h5>
<ol>
<li>&#x5185;&#x5BB9; Content<ul>
<li>&#x51B3;&#x5B9A;&#x4EC0;&#x4E48;&#x662F;&#x6700;&#x91CD;&#x8981;&#x7684;</li>
</ul>
</li>
<li>&#x5E03;&#x5C40; Layout<ul>
<li>&#x4F18;&#x5148;&#x8BBE;&#x8BA1;&#x66F4;&#x5C0F;&#x7684;&#x5BBD;&#x5EA6;&#x3002;</li>
<li>Base CSS&#x5F3A;&#x8C03;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#xFF1B;&#x4E2D;&#x7B49;&#x5173;&#x6CE8;&#x5E73;&#x677F;&#x3001;&#x7535;&#x8111;</li>
</ul>
</li>
<li>&#x6E10;&#x8FDB;&#x589E;&#x5F3A; Progressive Enhancement<ul>
<li>&#x968F;&#x7740;&#x5C4F;&#x5E55;&#x5927;&#x5C0F;&#x589E;&#x52A0;&#x800C;&#x6DFB;&#x52A0;&#x5143;&#x7D20;&#x3002;</li>
</ul>
</li>
</ol>
</blockquote>
</li>
<li><p>Bootstrap &#x6392;&#x7248;&#x3001;&#x94FE;&#x63A5;&#x6837;&#x5F0F;&#x8BBE;&#x7F6E;&#x4E86;&#x57FA;&#x672C;&#x7684;&#x5168;&#x5C40;&#x6837;&#x5F0F;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;</p>
<blockquote>
<p>Bootstrap&#x4FDD;&#x7559;&#x548C;&#x575A;&#x6301;&#x90E8;&#x5206;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x57FA;&#x7840;&#x6837;&#x5F0F;&#xFF0C;&#x89E3;&#x51B3;&#x90E8;&#x5206;&#x6F5C;&#x5728;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x63D0;&#x5347;&#x4E00;&#x4E9B;&#x7EC6;&#x8282;&#x7684;&#x4F53;&#x9A8C;&#xFF0C;&#x5728;&#x6392;&#x7248;&#x3001;&#x94FE;&#x63A5;&#x6837;&#x5F0F;&#x8BBE;&#x7F6E;&#x4E86;&#x57FA;&#x672C;&#x7684;&#x5168;&#x5C40;&#x6837;&#x5F0F;&#x3002;&#x5177;&#x4F53;&#x8BF4;&#x660E;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>&#x79FB;&#x9664;body&#x7684;margin&#x58F0;&#x660E;</li>
<li>&#x8BBE;&#x7F6E;body&#x7684;&#x80CC;&#x666F;&#x8272;&#x4E3A;&#x767D;&#x8272; <code>background-color: #fff;</code></li>
<li>&#x4E3A;&#x6392;&#x7248;&#x8BBE;&#x7F6E;&#x4E86;&#x57FA;&#x672C;&#x7684;&#x5B57;&#x4F53;&#x3001;&#x5B57;&#x53F7;&#x548C;&#x884C;&#x9AD8;</li>
<li>&#x8BBE;&#x7F6E;&#x5168;&#x5C40;&#x94FE;&#x63A5;&#x989C;&#x8272;&#xFF0C;&#x4E14;&#x5F53;&#x94FE;&#x63A5;&#x5904;&#x4E8E;&#x60AC;&#x6D6E;<code>:hover</code>&#x72B6;&#x6001;&#x65F6;&#x624D;&#x4F1A;&#x663E;&#x793A;&#x4E0B;&#x5212;&#x7EBF;&#x6837;&#x5F0F;</li>
</ul>
</blockquote>
</li>
<li><p>Bootstrap &#x5982;&#x4F55;&#x5728;&#x4E0D;&#x540C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x8868;&#x73B0;&#x51FA;&#x4E00;&#x6837;&#x7684;&#x6548;&#x679C;&#xFF1F;</p>
<blockquote>
<p>Bootstrap&#x6846;&#x67B6;&#x7684;&#x6838;&#x5FC3;&#x662F;&#x8F7B;&#x91CF;&#x7684;CSS&#x57FA;&#x7840;&#x4EE3;&#x7801;&#x5E93;&#xFF0C;&#x4ED6;&#x5E76;&#x6CA1;&#x6709;&#x4E00;&#x5473;&#x7684;&#x91CD;&#x7F6E;&#x6837;&#x5F0F;&#xFF0C;&#x800C;&#x662F;&#x6CE8;&#x91CD;&#x5404;&#x6D4F;&#x89C8;&#x5668;&#x57FA;&#x7840;&#x8868;&#x73B0;&#xFF0C;&#x964D;&#x4F4E;&#x5F00;&#x53D1;&#x96BE;&#x5EA6;&#x3002;
&#x4E3A;&#x4E86;&#x589E;&#x5F3A;&#x8DE8;&#x6D4F;&#x89C8;&#x5668;&#x8868;&#x73B0;&#x7684;&#x4E00;&#x81F4;&#x6027;&#xFF0C;Bootstrap&#x4F7F;&#x7528;&#x4E86; <a href="http://necolas.github.io/normalize.css/" target="_blank">Normalize.css</a>&#x3002;&#x4F46;&#x6CA1;&#x6709;&#x4E00;&#x5473;&#x5168;&#x90E8;&#x4F7F;&#x7528;&#x8BE5;&#x91CD;&#x7F6E;&#x6837;&#x5F0F;&#xFF0C;&#x800C;&#x662F;&#x5728;&#x6B64;&#x57FA;&#x7840;&#x4E4B;&#x4E0A;&#x8FDB;&#x884C;&#x4E86;&#x4E00;&#x4E9B;&#x6539;&#x826F;&#xFF0C;&#x8BA9;&#x5176;&#x66F4;&#x52A0;&#x7B26;&#x5408;Bootstrap&#x7684;&#x8BBE;&#x8BA1;&#x601D;&#x60F3;&#x3002;</p>
</blockquote>
</li>
<li><p>&#x5E03;&#x5C40;&#x5BB9;&#x5668;&#xFF08;container&#xFF09;&#x662F;&#x4EC0;&#x4E48;&#x9B3C;&#xFF1F;</p>
<blockquote>
<p>&#x987E;&#x540D;&#x601D;&#x4E49;&#xFF0C;&#x5C31;&#x662F;&#x653E;Bootstrap&#x4EE3;&#x7801;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x53EA;&#x6709;&#x653E;&#x5728;container&#x91CC;&#x9762;&#x7684;html&#x4EE3;&#x7801;&#x624D;&#x4F1A;&#x88AB;Bootstrap&#x8BC6;&#x522B;&#x3002;
<img src="http://wy.codingirlsclub.com/2016-12-06-lLu7n.jpg" alt="">
<strong>&#x6CE8;&#x610F;</strong>
&#x6211;&#x4EEC;&#x8981;&#x628A;Bootstrap&#x7684;HTML&#x7684;&#x4EE3;&#x7801;&#x90FD;&#x653E;&#x5728; &#x5E26; <code>container</code> or <code>container-fluid</code>&#x7C7B;&#x7684; <code>&lt;div&gt;</code>&#x6807;&#x7B7E;&#x4E2D;.</p>
</blockquote>
</li>
<li><p>.container  &#x548C;  .container-fluid &#x90FD;&#x662F;&#x54CD;&#x5E94;&#x5F0F;&#xFF0C;&#x90A3;&#x6709;&#x4EC0;&#x4E48;&#x5DEE;&#x522B;&#xFF1F;</p>
<blockquote>
<p>&#x770B;&#x6E90;&#x7801;bootstrap.css&#x53EF;&#x4EE5;&#x770B;&#x5230;container&#x548C;container-fluid&#x7C7B;&#x672C;&#x8EAB;&#x6CA1;&#x6709;&#x8BBE;&#x7F6E;width&#x5C5E;&#x6027;&#x503C;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x9ED8;&#x8BA4;100%&#xFF0C;&#x4F46;&#x662F;container&#x7C7B;&#x8FD8;&#x8BBE;&#x7F6E;&#x4E86;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#xFF1A;</p>
<pre><code class="lang-css">@<span class="hljs-keyword">media</span> (min-width: <span class="hljs-number">768px</span>) {
<span class="hljs-selector-class">.container</span> {
<span class="hljs-attribute">width</span>: <span class="hljs-number">750px</span>;
}
}
@<span class="hljs-keyword">media</span> (min-width: <span class="hljs-number">992px</span>) {
<span class="hljs-selector-class">.container</span> {
<span class="hljs-attribute">width</span>: <span class="hljs-number">970px</span>;
}
}
@<span class="hljs-keyword">media</span> (min-width: <span class="hljs-number">1200px</span>) {
<span class="hljs-selector-class">.container</span> {
<span class="hljs-attribute">width</span>: <span class="hljs-number">1170px</span>;
}
}
</code></pre>
<p>&#x4E5F;&#x5C31;&#x662F;&#x8BF4;container&#x7C7B;&#x5728;&#x6D4F;&#x89C8;&#x5668;viewport&#x5BBD;&#x5EA6;768~992px&#x533A;&#x95F4;&#x5BBD;&#x5EA6;&#x56FA;&#x5B9A;&#x4E3A;750px&#xFF0C;&#x5728;992~1200px&#x533A;&#x95F4;&#x5BBD;&#x5EA6;&#x5BBD;&#x5EA6;&#x56FA;&#x5B9A;&#x4E3A;970px&#xFF0C;&#x5927;&#x4E8E;1200px&#x7684;&#x65F6;&#x5019;&#x5BBD;&#x5EA6;&#x56FA;&#x5B9A;&#x4E3A;1170px&#xFF0C;&#x6240;&#x4EE5;container&#x7C7B;&#x5728;viewport&#x5927;&#x4E8E;768px&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x6709;&#x53D8;&#x5316;&#x7684;&#x5DE6;&#x53F3;margin&#xFF0C;&#x800C;container-fluid&#x7C7B;&#x6CA1;&#x6709;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x8BBE;&#x7F6E;&#xFF0C;&#x6240;&#x4EE5;&#x59CB;&#x7EC8;&#x662F;100%&#x5BBD;&#x5EA6;&#xFF0C;&#x6CA1;&#x6709;&#x5DE6;&#x53F3;margin&#x3002;</p>
<blockquote>
<p>&#x7F51;&#x7EDC;&#x641C;&#x5230;&#x4E00;&#x4E9B;&#x8D44;&#x6599;&#xFF1A;</p>
<ul>
<li><a href="http://www.jianshu.com/p/a91f4cc4a7cb" target="_blank">Bootstrap&#x4E2D;container&#x4E0E;container-fluid&#x7684;&#x533A;&#x522B; - &#x7B80;&#x4E66;</a></li>
<li><a href="http://blog.csdn.net/sinat_27088253/article/details/50985432" target="_blank">bootstrap&#x4E2D;container&#x7C7B;&#x548C;container-fluid&#x7C7B;&#x7684;&#x533A;&#x522B; - so what - &#x535A;&#x5BA2;&#x9891;&#x9053; - CSDN.NET</a></li>
<li><a href="https://www.zhihu.com/question/31269162" target="_blank">bootstrap&#x4E2D;container&#x8DDF;container-fluid&#x7684;&#x6837;&#x5F0F;&#x662F;&#x4E00;&#x6837;&#x7684;&#xFF0C;&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x5206;&#x5F00;&#x5199;&#xFF1F; - &#x77E5;&#x4E4E;</a></li>
<li><a href="http://taojin.science/2016/05/11/BootStrap%E6%A0%85%E6%A0%BC%E7%B3%BB%E7%BB%9F/" target="_blank">Bootstrap &#x6805;&#x683C;&#x7CFB;&#x7EDF; &#x7406;&#x89E3;&#x548C;&#x603B;&#x7ED3; | JeryTao</a></li>
</ul>
</blockquote>
</blockquote>
</li>
</ol>
<h4 id="&#x4F5C;&#x4E1A;">&#x4F5C;&#x4E1A;</h4>
<ol>
<li>&#x5FEB;&#x901F;&#x9605;&#x8BFB;<a href="http://v3.bootcss.com/css/" target="_blank">&#x5168;&#x5C40; CSS &#x6837;&#x5F0F; &#xB7; Bootstrap &#x4E2D;&#x6587;&#x6587;&#x6863;</a>&#xFF0C;&#x5148;&#x53EA;&#x4E86;&#x89E3;&#x6709;&#x54EA;&#x4E9B;&#x6574;&#x4F53;&#x77E5;&#x8BC6;&#x70B9;&#x3002;&#x770B;&#x5230;<a href="http://v3.bootcss.com/css/#responsive-utilities" target="_blank">&#x54CD;&#x5E94;&#x5F0F;&#x5DE5;&#x5177;</a>&#x5373;&#x53EF;&#xFF0C;&#x540E;&#x9762;&#x7684;Less&#x548C;Sass&#x53EF;&#x4EE5;&#x5148;&#x4E0D;&#x770B;&#x3002;</li>
<li>&#x901A;&#x8BFB;&#xFF0C;&#x77E5;&#x9053;&#x8FD9;&#x4E9B;&#x77E5;&#x8BC6;&#x70B9;&#x5982;&#x4F55;&#x5B9A;&#x4E49;&#x3002;</li>
<li>&#x7CBE;&#x5EA6;&#xFF0C;&#x77E5;&#x9053;&#x8FD9;&#x4E9B;&#x77E5;&#x8BC6;&#x70B9;&#x5982;&#x4F55;&#x7528;&#x4EE3;&#x7801;&#x5B9E;&#x73B0;&#x3002;</li>
</ol>
<p>&#x4E0B;&#x9762;&#xFF0C;&#x6211;&#x4EEC;&#x4F1A;&#x8FDB;&#x5165;&#x5B9E;&#x6218;&#x73AF;&#x8282;&#xFF0C;&#x5199;&#x4E00;&#x4E9B;&#x5E38;&#x7528;&#x7684;Bootstrap&#x6A21;&#x5757;&#xFF0C;&#x5C06;&#x6765;&#x5927;&#x5BB6;&#x81EA;&#x5DF1;&#x5199;&#x9875;&#x9762;&#x5C31;&#x53EF;&#x4EE5;&#x50CF;&#x642D;&#x79EF;&#x6728;&#x4E00;&#x6837;&#x5199;&#x51FA;&#x81EA;&#x5DF1;&#x7684;&#x9875;&#x9762;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../CSS/5-CSS-Best-Practice.html" class="navigation navigation-prev " aria-label="Previous page: 3.5 动手 - 修改更多CSS样式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="1-Grid.html" class="navigation navigation-next " aria-label="Next page: 4.1 布局">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Intro to Bootstrap","level":"1.5","depth":1,"next":{"title":"4.1 布局","level":"1.5.1","depth":2,"path":"Bootstrap/1-Grid.md","ref":"Bootstrap/1-Grid.md","articles":[]},"previous":{"title":"3.5 动手 - 修改更多CSS样式","level":"1.4.5","depth":2,"path":"CSS/5-CSS-Best-Practice.md","ref":"CSS/5-CSS-Best-Practice.md","articles":[]},"dir":"ltr"},"config":{"plugins":["downloadpdf","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"shortName":"girlscodingday"},"livereload":{},"search":{},"downloadpdf":{"label":"Download PDF","multilingual":false,"base":"http://pan.baidu.com/s/1i5L60df"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"sharing":{"qq":true,"all":["weibo","instapaper","linkedin","pocket","instapaper"],"douban":true,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"twitter":false,"messenger":false,"vk":false,"pocket":true,"google":false,"qzone":true,"linkedin":true},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Yang Wen <wenyang@codingirls.club>","pdf":{"pageBreaksBefore":"/","headerTemplate":null,"paperSize":"a4","margin":{"right":62,"left":62,"top":36,"bottom":36},"fontSize":12,"fontFamily":"Arial","footerTemplate":null,"chapterMark":"pagebreak","pageNumbers":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Girls Coding Day Tutorial","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":"http://weibo.com/codingirlsclub","douban":"https://www.douban.com/people/codingirlsclub/"},"sidebar":{"Girls Coding Day":"https://girlscodingday.org/"}},"gitbook":"*","description":"The tutorial is created for Girls Coding Day","extension":null},"file":{"path":"Bootstrap/README.md","mtime":"2017-06-30T16:49:35.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-02-12T07:38:59.260Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-downloadpdf/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

